<%@ include file="top.jsp" %>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page import="java.util.Calendar" %>
<%@ page import="icom.acm.bean.T_USER" %>
<%@ page import="icom.acm.bean.T_U_BASEINFO" %>
<%@ page import="icom.acm.manager.T_U_BaseInfoMgr" %>
<%
T_USER user = (T_USER)session.getAttribute("user");
if (user == null) return ;
if (user.getU_ROLE()<0 ) return ;
String token = java.util.UUID.randomUUID().toString();
session.setAttribute("token", token);
System.out.println(user.getU_PASSWORD());
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link type="text/css" href="jquery/css/smoothness/jquery-ui-1.8.20.custom.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="jquery/themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="jquery/themes/icon.css">
<link rel="stylesheet" type="text/css" href="jquery/themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="jquery/themes/default/messager.css">
<link rel="stylesheet" type="text/css" href="jquery/themes/default/accordion.css">

<script type="text/javascript" src="jquery/js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="jquery/js/jquery.easyui.min.js"></script>
<script type="text/javascript" src="jquery/js/jquery-ui-1.8.20.custom.min.js"></script>

<title>修改密码</title>
</head>


<body class="sub" style="background:#F0FFF0;">
<form action="UserSafe_pwdModif" method="post" name="userbaseinfo" id="form1">
  <table width="90%" border="0" cellpadding="4">
    <tr>
      <td colspan="3" class="HeaderColor">        <h4>账户密码修改</h4>      </td>
    </tr>
    <tr style="vertical-align: center">
      <td class="LabelColor" style="text-align: right">
        <label for="username">旧密码:</label>      </td>
      <td colspan="2" class="TitleColor"><input type="password" name="pwd" required="true">
      </td>
    </tr>
    <tr style="vertical-align: center">
      <td class="LabelColor" style="text-align: right">
        <label for="username">新密码:</label>      </td>
      <td colspan="2" class="TitleColor"><input type="password" name="newpwd" required="true">
      </td>
    </tr>
     <tr style="vertical-align: center">
      <td class="LabelColor" style="text-align: right">
        <label for="username">确认密码:</label>      </td>
      <td colspan="2" class="TitleColor"><input type="password" name="newpwdconfim" required="true">
      </td>
    </tr>
    <tr>
    <td>
    <input type="hidden" name="uid" value="<%=user.getU_ID() %>">
    <input type="hidden" name="token" value="<%=token %>">
    <input type="hidden" name="oldpwd" value="<%=user.getU_PASSWORD()%>">
    </td>
    </tr>
    <tr style="vertical-align: top" class="FooterColor">
      <td colspan="3" align="center">
        <a id="asubmit" class="easyui-linkbutton" onclick="document.getElementById('userbaseinfo').submit();">修改</a>
	  </td>
    </tr>
  </table>
</form>
</body>

</html>